package org.mistlab.models
{
    import org.papervision3d.objects.DisplayObject3D;
    import org.papervision3d.objects.parsers.DAE;
    import com.greensock.TweenMax;
    import com.greensock.easing.Quint;

    public class Building extends DisplayObject3D
    {
	
    	private var _building:DAE;
    	private var _tween:TweenMax;
	
    	public function Building()
    	{
    		super();    		
    		
            _building = new DAE();
            _building.load('models/RockHall/models/model.dae');
            _building.scale = .01;
            addChild(_building);
            
            _tween = new TweenMax(_building, 2, {scale:0.4, ease:Quint.easeOut})
    	}
    	
    	public function show():void
    	{            
    	    _tween.play();
    	}
    	
    	public function hide():void
    	{
    	   _tween.reverse();
    	}
    }

}